<?php
$password = "kyfj8LLrtrt";

if (preg_match("/^.*(?=.{8,})(?=.*\d)(?=.*[^A-Z0-9a-z])(?=.*[a-z])(?=.*[A-Z]).*$/", $password)) {
echo "Your passwords is strong.";
} else {
echo "Your password is weak.";
}
?>
